package jp.co.sn.mml.pojo.tmzaibt;


public class TmzaibtId implements java.io.Serializable { 

	//材料コード
	private String zrCd;
	//行番号
	private Long seq;

	/** default constructor */
	public TmzaibtId(){

	}

	/** full constructor */
	public TmzaibtId(String zrCd,Long seq){
		this.zrCd = zrCd;
		this.seq = seq;
	}

	//Property accessors
	public String getZrCd(){
		return this.zrCd;
	}

	public void setZrCd(String zrCd){
		this.zrCd=zrCd;
	}

	public Long getSeq(){
		return this.seq;
	}

	public void setSeq(Long seq){
		this.seq=seq;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof TmzaibtId))
			return false;

		TmzaibtId castOther = (TmzaibtId) other;

		return ((this.getZrCd() ==  castOther.getZrCd())
				||(this.getZrCd()!=null && castOther.getZrCd() !=null 
					&& castOther.getZrCd() !=null 
					&& this.getZrCd().equals(castOther.getZrCd())))
			&& ((this.getSeq() ==  castOther.getSeq())
				||(this.getSeq()!=null && castOther.getSeq() !=null 
					&& castOther.getSeq() !=null 
					&& this.getSeq().equals(castOther.getSeq())))
;	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getZrCd() == null ? 0 : this.getZrCd().hashCode());
		result = 37 * result
				+ (getSeq() == null ? 0 : this.getSeq().hashCode());
		return result;
	}

}